package webshop.controller.action;

import webshop.model.bl.CategoryManager;

import com.opensymphony.xwork2.ActionSupport;

public class CategoryDeleteAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6048025295222813600L;
	
	private Integer categoryId;
	
	public String execute() {
		new CategoryManager().deleteCategory(categoryId);
		return SUCCESS;
	}
	
	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}

}
